$(function () {
    $('#discuss-box').keydown(function (event) {
        if (event.keyCode == 13) {
            var text = $(this).val();
            var url = 'http://192.168.0.105:8501/?s=index/chart/index';
            var data = {'content': text, 'game_id': 1};

            $.post(url, data, function (result) {
                //todo
                $('#discuss-box').val("");
            }, 'json')
        }
    });

})

